package com.ethink.warehouse.api.info;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 仓库库存 INFO实体
 *
 * @author default
 * @date 2022-11-10
 */
@Data
public class MateInventoryInfo {

    @Schema(description ="主键")
    private Long id;

    @Schema(description ="商品SKU")
    private String mateSku;

    @Schema(description ="分仓编号")
    private String subWarehouseCode;

    @Schema(description ="采购批次")
    private String purchaseCode;

    @Schema(description ="枚举 库存类型:1-正品(zp)|2-瑕疵(cc)")
    private Integer inventoryType;

    @Schema(description ="渠道")
    private String saleSubChannel;

    @Schema(description ="可用库存")
    private Integer availableQty;

    @Schema(description ="锁定库存")
    private Integer lockQty;

    @Schema(description ="在途数量")
    private Integer onPassageQty;

    @Schema(description ="数据删除标志(0-正常,1-删除)")
    private Integer isDeleted;

    @Schema(description ="数据创建时间戳")
    private Date createTime;

    @Schema(description ="数据更新时间戳")
    private Date updateTime;

    @Schema(description ="创建人")
    private String createUser;

    @Schema(description ="修改人")
    private String updateUser;

    @Schema(description ="备注信息")
    private String remark;

    @Schema(description ="生产批次")
    private String produceCode;

    @Schema(description ="原产国")
    private String countryOfOrigin;

    @Schema(description ="商品生产日期")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date productDate;

    @Schema(description ="商品过期日期")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date expireDate;

    @Schema(description ="入库时间")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date rkTime;

    @Schema(description ="采购单号")
    private String purchaseOrderNo;

    @Schema(description ="采购详单号")
    private String purchaseDetailOrderNo;

    @Schema(description ="成本单价")
    private BigDecimal costPrice;

    @Schema(description ="商品编号")
    private String mateCode;

    @Schema(description ="商品名称")
    private String mateName;

    @Schema(description ="商品SKU名称")
    private String mateSkuName;

    @Schema(description ="大类编号")
    private String generaCode;

    @Schema(description ="中类编号")
    private String minorDefectsCode;

    @Schema(description ="小类编号")
    private String subclassCode;

    @Schema(description ="商品分类")
    private String categoryName;

    @Schema(description ="品牌编码")
    private String brandCode;

    @Schema(description ="品牌名称")
    private String brandName;

    @Schema(description ="商品条码")
    private String internationCode;

    @Schema(description ="包装单位编码")
    private String unitCode;

    @Schema(description ="包装单位名称")
    private String unitName;

    @Schema(description ="商品规格")
    private String productSpecification;

    @Schema(description ="货币编码")
    private String currencyCode;

    @Schema(description ="货币名称")
    private String currencyName;



}
